package util.designpattern.Signature;

/**
 * 单例模式：饿汉式
 */
public class Sun {

    private static Sun sun = new Sun();

    private Sun(){
    }

    public synchronized  static Sun getInstance(){
        return  sun;
    }
}
